package com.amos.teaching_aids;


import android.app.Application;
import android.content.Context;

import com.amos.teaching_aids.utils.SharedPreferencesHelper;

public class SysApplication extends Application{
    //全局context
    private static Context context;
    //application实例
    private static SysApplication instance;
    public static int screenWidth;
    public static int screenHeight;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        instance = this;
        SharedPreferencesHelper.init(this);
        screenWidth = getResources().getDisplayMetrics().widthPixels;
        screenHeight = getResources().getDisplayMetrics().heightPixels;

    }

    public static Context getContext() {
        return context;
    }

    public static SysApplication getInstance() {
        return instance;
    }
}
